<?php if (isset($msg_info)) : ?>
	<script type="text/javascript" language="JavaScript">
		$(document).ready(function() {
			$("#msg_info").animate({opacity: 1.0}, 3000).fadeOut();
		});
	</script>
<?php endif; ?>
<?php if (isset($msg_error)) : ?>
	<script type="text/javascript" language="JavaScript">
		$(document).ready(function() {
			$("#msg_error").animate({opacity: 1.0}, 3000).fadeOut();
		});
	</script>
<?php endif; ?>
<?php if (isset($extraHead)) echo $extraHead; ?>
<?php if (isset($extraCSS)): ?>
<?php foreach($extraCSS as $CSS): ?>
<link rel="stylesheet" href="<?php echo $CSS;?>" type="text/css" media="screen" />
<?php endforeach;?>
<?php endif; ?>
<?php if (isset($extraJS)): ?>
<?php foreach($extraJS as $JS): ?>
<script src="<?php echo $JS;?>" type="text/javascript"></script>
<?php endforeach;?>
<?php endif; ?>
<script>google.load("gdata", "1"); google.setOnLoadCallback(getMyFeed);</script>
</head>
<body <?php if (isset($extraBody)) echo $extraBody; ?>>
<div id="stretch">
<div id="wrapper">
<div id="container">
<div id="header">
	<?php if (isset($admin_nav)): ?>
		<?php $this->load->view('admin/admin_nav'); ?>
	<?php elseif (isset($loggedin)): ?>
		<?php $this->load->view('site_nav'); ?>
	<?php endif; ?>
	<a href="<?php echo site_url()?>" class="home"><img src="<?php echo site_url()?>templates/fall2009/img/button.png" alt="home" /></a>
</div>
<div id="right_side">
	<?php if (isset($msg_info)) : ?>
		<div id="msg_info" class="info"><?php echo $msg_info?></div>
	<?php endif; ?>
	<?php if (isset($msg_error)) : ?>
		<div id="msg_error" class="error"><?php echo $msg_error?></div>
	<?php endif; ?>
	<?php if (isset($sidebar)): ?>
		<?php $this->load->view('sidebar'); ?>
	<?php endif; ?>
